#!/bin/bash
i=0
while ((++i)); do
  j=0
  while ((++j)); do
    if ((i>4)); then
      break 2
    fi
    if ((j>4));then
      break
    fi
    printf "%-4d" $((i*j))
  done
  printf "\n"
done
